package com.adou.d2;

import java.util.Random;

public class RandDemo {
    public static void main(String[] args) {
        Random r = new Random();
//        int a = r.nextInt(10);//0-9
        int a = r.nextInt(10) + 1;//0-9
        System.out.println(a);
    }
}
